package com.espirit.eap.manager.workflow;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.ManyToOne;

import com.espirit.EntityMapping;
import com.googlecode.cswish.model.Saas;


@Entity
public class WFTemplatePhase extends EntityMapping implements Saas{

	private Integer sid;
	public Integer getSid() {
		return sid;
	}

	public void setSid(Integer sid) {
		this.sid = sid;
	}
	
	private WFTemplate wfTemplate;
	private WFPhase wfPhase;
	
	@ManyToOne(targetEntity = WFTemplate.class,fetch=FetchType.LAZY)
	public WFTemplate getWfTemplate() {
		return wfTemplate;
	}
	public void setWfTemplate(WFTemplate wfTemplate) {
		this.wfTemplate = wfTemplate;
	}
	
	@ManyToOne(targetEntity = WFPhase.class,fetch=FetchType.LAZY)
	public WFPhase getWfPhase() {
		return wfPhase;
	}
	public void setWfPhase(WFPhase wfPhase) {
		this.wfPhase = wfPhase;
	}
	
}
